
<?php if ($user_ban != 'off'): ?>
	<font color="red"><h2><?=_l('Profile')?> <?= $user_name ?> <?=_l('Profile_ban')?>  </h2> </font>
<?php else: ?>
	<h2><?=_l('Profile')?> <?= $user_name ?> </h2>
<?php endif;?>

<?= $status ?>

<?php 
	if (is_registered() && $notme)
		load_module_view('user', 'user_actions',  array('isafriend' => $isafriend, 'user_id' => $user_id));
?>  

<div class="table_body">
	<table cellspacing="0" cellpadding="4" width="100%">
		<tr>
			<td width="20%" align="right"><?=_l('Avatar')?>:</td>
			<td><img src="<?= $avatar ?>" alt=""> </td>
		</tr>
		<tr>
			<td align="right"><?=_l('Registered')?>:</td>
			<td>
				<b><?= $register ?></b>
			</td>
		</tr>
		<?php if ( count($friends) > 0): ?>
		<tr>
			<td valign="top" align="right"><?=_l('Friends')?>:</td>
			<td>
				<ul class="friends_list">
					<?php foreach ($friends as $friend): ?>
						<li class="friend"><?= url_user($friend['id'], $friend['name']) ?></li>
					<?php endforeach; ?>

				</ul>
			</td>
		</tr>
		<?php endif;?>
		<?php if ( count($blogs) > 0): ?>		
		<tr>
			<td valign="top" align="right"><?=_l('Blogs')?>:</td>
			<td>
				<ul id="communities_list">
					<?php foreach ($blogs as $blog): ?>
						<li class="community"><?= anchor('blog/'.$blog['name'], $blog['header']) ?></li>
					<?php endforeach; ?>
				</ul>
			</td>
		</tr>
		<?php endif;?>		
	</table>
</div>

